import http from "@/api";
import { LOG_PORT } from "@/api/config/servicePort";
import { Log, ResPage } from "@/api/interface";

export const getLogList = (params: Log.ReqLogParams) => {
  return http.post<ResPage<Log.ResLogList>>(LOG_PORT + `/list`, params);
};

export const getLogLevel = () => {
  return http.get<Log.Level[]>(LOG_PORT + `/level`);
};

export const getRequestMethod = () => {
  return http.get<Log.Method[]>(LOG_PORT + `/method`);
};
